extends Area2D

var vec:Vector2 = Vector2(3, 3);
var initPosition:Vector2;
# Called when the node enters the scene tree for the first time.
func _ready():
	self.add_to_group("Ball");
	initPosition = position;
	pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
	position += vec;
	pass;

func reset():
	if vec.x > 0:
		ComputeScore.playerOne += 1;
	else:
		ComputeScore.playerTow += 1;
	position = initPosition;
